package design.mode.guava;

import java.util.function.Function;
import java.util.stream.Stream;

public class main {
    public static void main(String[] args) {
        Stream.of("fo", "bar", "hello").map(new Function<String, Integer>() {

            @Override
            public Integer apply(String s) {
                return s.length();
            }
        });
        Stream.of("fo", "bar", "hello").map(s -> s.length());
    }

}
